//
//  SecondViewController.h
//  shouji138
//
//  Created by administrator on 8/27/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "db.h"
#import "file.h"
#import <MessageUI/MessageUI.h>

@interface SecondViewController : UIViewController {
	
	IBOutlet UITableView *myscrollView;
	
	IBOutlet UILabel *ip;
	IBOutlet UILabel *port;	
	IBOutlet UILabel *startedTime;
	IBOutlet UILabel *count;
	IBOutlet UILabel *qcount;
	IBOutlet UILabel *sessionState;
	IBOutlet UIButton *sendMailButton;
	IBOutlet UIButton *newButton;
	IBOutlet UIButton *openButton;
	IBOutlet UIButton *closeButton;
	IBOutlet UIButton *saveButton;
	IBOutlet UIButton *showButton;
	IBOutlet UIButton *hideButton;
	
	IBOutlet UIButton *viewQuestions;
	
	IBOutlet UIButton *viewHandsRaised;
	
	db *udb;
	file *refile;
	int currSid;
	
	NSDateFormatter *dateFormatter;
}
-(IBAction)clearButtonClick:(id)sender;
-(IBAction)reportButtonClick:(id)sender;
-(IBAction)sendMailClick:(id)sender;
-(IBAction)newClick:(id)sender;
-(IBAction)openClick:(id)sender;
-(IBAction)closeClick:(id)sender;
-(IBAction)saveClick:(id)sender;
-(IBAction)showClick:(id)sender;
-(IBAction)hideClick:(id)sender;
-(IBAction)manageButtonClick:(id)sender;
-(void)updateUser;
-(void)updateResult:(NSString *)msg;

-(IBAction)viewQuestionsClick:(id)sender;
-(IBAction)viewHandsRaisedClick:(id)sender;

@property (nonatomic, retain) NSDateFormatter *dateFormatter;



@property (retain, nonatomic) UITableView *myscrollView;
@property (retain, nonatomic)  UILabel *sessionState;
@property (retain, nonatomic)  UILabel *count;
@property (retain, nonatomic)  UILabel *qcount;
@end
